package com.wx.oss.adapter;

import com.wx.oss.entity.FileInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;

/**
 * @BelongsProject: xx-club
 * @BelongsPackage: com.wx.oss.adapter
 * @Author: wangx
 * @CreateTime: 2024-03-18  14:21
 * 阿里云存储适配器
 * @Version: 1.0
 */
public class AliStorageAdapter  implements StorageAdapter{
    @Override
    public void makeBucket(String bucketName) {

    }

    @Override
    public List<String> listBuckets() {
        List<String> bucketNameList = new ArrayList<>();
        bucketNameList.add("aliyun");
        return bucketNameList;
    }

    @Override
    public List<FileInfo> getAllFile(String bucketName) {
        return null;
    }

    @Override
    public void removeBucket(String bucketName) {

    }

    @Override
    public void uploadFile(MultipartFile multipartFile, String bucketName, String fileName) {

    }

    @Override
    public InputStream downloadFile(String bucketName, String fileName) {
        return null;
    }

    @Override
    public void removeFile(String bucketName, String fileName) {

    }

    @Override
    public String getFileUrl(String bucketName, String fileName) {
        return null;
    }
}


